//
//  User.swift
//  WeiBlog
//
//  Created by apple on 15/10/20.
//  Copyright © 2015年 xiang. All rights reserved.
//

import UIKit


/// 用户信息(每条微博发布者)
class UserInfo: NSObject {

 /// 昵称
    var screen_name:String?
 /// 头像地址
    var profile_image_url:String?
    /// 认证类型，-1：没有认证，0，认证用户，2,3,5: 企业认证，220: 达人
    var verified_type: Int = 0
    /// 会员等级 0-6
    var mbrank: Int = 0
    
    
    ///  字典转模型
    init(dict:[String:AnyObject]){
        
        super.init()
        
        setValuesForKeysWithDictionary(dict)
        
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
        
    }
    
     /// 重写'输出'属性
     override var description:String{
        
        let keys = ["screen_name","profile_image_url","verified_type","mbrank"]
        
        return "\(dictionaryWithValuesForKeys(keys))"
    }

}
